LINK    = @echo linking $@ && arm-linux-gnueabihf-g++
GCC     = @echo compiling $@ && arm-linux-gnueabihf-g++ 
GC      = @echo compiling $@ && arm-linux-gnueabihf-gcc
AR      = @echo generating static library $@ && ar crv 
FLAGS   = -g -W -Wall -fPIC 

GCCFLAGS = 
HEADER  = 
LIBS    =
LINKFLAGS = -I /usr/arm32/include/ -L /usr/arm32/lib/

LIBS    +=  -lasound -lpthread 

SOURCE_FILES :=\
		main.c\
		app/audio/audio.c\

PROJECTNAME = aplay

TARGET = main

all: $(SOURCE_FILES)
	${GC} $(FLAGS) $(LINKFLAGS) $(GCCFLAGS) -o ${PROJECTNAME} $^ $(LIBS) ${HEADER}
.PHONY:clean
clean:
	rm -rf *.out	
.PHONY:del
del:
	rm -rf *